const glob = require('glob')

let admin = []
const files = glob.sync('./admin/**/*.md')
files.map(file => {
    file = file.replace(/\.\/admin\//g, '').replace(/\.md/g, '')
    if (file === 'README') {
        file = ''
    }
    admin.push(file)
})
console.log(admin)

module.exports = {
    themeConfig: {
        sidebar: {
            '/admin/': {
                title: '后台'
            }
        }
    }
}
